//
//  OrderVC.m
//  违章查询助手
//
//  Created by qianfeng on 15/10/26.
//  Copyright (c) 2015年 LY. All rights reserved.
//

//
//  *************** 我的订单 ********************
//


#import "OrderVC.h"
#import "BreakFineVC.h"
#import "OtherOrderVC.h"

@interface OrderVC ()

@end

@implementation OrderVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self CreateTitleView];
    [self createScroll];
}

//活动条
-(void)createScroll
{
    CGRect frame = CGRectMake(0, 64, self.view.frame.size.width, self.view.frame.size.height);
    NSArray * array = @[[BreakFineVC new],[OtherOrderVC new]];
    NSArray * nameArray = @[@"违章缴费",@"其他订单"];
    self.scroll = [XLScrollViewer scrollWithFrame:frame withViews:array withButtonNames:nameArray withThreeAnimation:222];
    self.scroll.xl_topBackColor = [UIColor whiteColor];
    self.scroll.xl_sliderColor = [UIColor redColor];
    self.scroll.xl_sliderHeight = 2;
    self.scroll.xl_buttonColorNormal = [UIColor grayColor];
    self.scroll.xl_buttonColorSelected = [UIColor redColor];
    self.scroll.xl_topHeight = 40;
    self.scroll.xl_buttonFont = 18;
    self.scroll.xl_buttonToSlider = 10;
    [self.view addSubview:self.scroll];
}

//创建导航栏
-(void)CreateTitleView
{
    UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 150, 40)];
    label.textColor = [UIColor whiteColor];
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:22];
    label.text = @"我的订单";
    [self.view addSubview:label];
    self.navigationItem.titleView = label;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
